/*
######################################################################################################
#                                                                                                    # 
#	This page shows a success message after registration.
#                                                                                                    #	                                                                                                 # 
#	Author: Sharvan                                                                            #     
#	Date: 8/02/06                                                                                  # 
#	                                                                                                 # 
######################################################################################################
 */
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using SiteManager;

public partial class success : System.Web.UI.Page
{

    protected void Page_Load(object sender, EventArgs e)
    {
        Manager objManager = new Manager(true,"ConnectionString");
        localFunction lFunction= new localFunction();
        
        if(Request.QueryString["ref"]=="doctor")
            if(lFunction.checkDoctorLogin(false))
                lblsucess.Text = "You have successfully changed your Account Information";
            else
            lblsucess.Text = "You have successfully registered with us. Now You can login with your Email and Password that you filled in registration form";
    
        if (Request.QueryString["ref"] == "dentist")
            if(lFunction.checkDentistLogin(false))
                lblsucess.Text = "You have successfully changed your Account Information";
            else
                lblsucess.Text = "You have successfully registered with us. Now You can login with your Email and Password that you filled in registration form";

        if (Request.QueryString["ref"] == "patient")
            lblsucess.Text = "You have successfully registered with us. Now You can login with your Email and Password that you filled in registration form";

      


    }
}
